package com.jic.market.service.rest.discount;

import com.jic.market.request.rest.discount.DiscountCancelRequest;
import com.jic.market.request.rest.discount.DiscountOrderCreateRequest;
import com.jic.market.request.rest.discount.DiscountOrderPayRequest;
import com.jic.market.request.rest.discount.DiscountQueryRequest;
import com.jic.market.response.rest.coupon.QueryCouponPersonResponse;
import com.jic.market.response.rest.discount.DiscountQueryResponse;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import java.util.List;

/**
 * @author yinhaijun
 * @date: 2020/4/27
 */
@Validated
public interface DiscountService {

    /** 优惠劵查询 */
    List<QueryCouponPersonResponse> queryCoupon(@Valid DiscountQueryRequest request);

    /** 购物车查询 */
    DiscountQueryResponse queryShoppingCartDiscount(@Valid DiscountQueryRequest request);

    /** 结算页查询 */
    DiscountQueryResponse querySettlement(@Valid DiscountQueryRequest request);

    /** 创建 */
    List<DiscountQueryResponse> create(@Valid DiscountOrderCreateRequest request);

    /** 支付 */
    Integer pay(@Valid DiscountOrderPayRequest request);

    /** 取消 */
    DiscountQueryResponse cancel(@Valid DiscountCancelRequest request);

}
